package com.ruoyi.project.drug.service.impl;

import com.ruoyi.project.drug.domain.Drug_Message;
import com.ruoyi.project.drug.mapper.Drug_MessageMapper;
import com.ruoyi.project.drug.service.IDrug_MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Drug_MessageServiceImpl implements IDrug_MessageService {
    @Autowired
    private Drug_MessageMapper drug_messageMapper;

    /*
     * 查询所有药品信息
     * */
    @Override
    public List<Drug_Message> selectDrug_MessageList(Drug_Message drug_message) {
        return drug_messageMapper.selectDrug_MessageList(drug_message);
    }

    /*
     * 添加药品信息
     * */
    @Override
    public int insertDrug_Message(Drug_Message drug_message) {
        return drug_messageMapper.insertDrug_Message(drug_message);
    }

    /*
     * 按条件查询药品信息
     * */
    @Override
    public Drug_Message selectById(Long id) {
        return drug_messageMapper.selectById(id);
    }

    /*
     * 修改药品信息
     * */
    @Override
    public int updateDrug_Message(Drug_Message drug_message) {
        return drug_messageMapper.updateDrug_Message(drug_message);
    }

    /*
     * 删除药品
     * */
    @Override
    public int deleteDrug_MessageByIds(Long[] ids) {
        return drug_messageMapper.deleteDrug_MessageByIds(ids);
    }


}
